<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <my-ul></my-ul>
    </div>
</body>
<script src="../../vue.js"></script>
<script>
    Vue.component("MyUl",{
        template:"<div><h1>{{message}}</h1><a>{{messag}}</a></div>",
        data:function(){
            return{
                message:"我是全局组件里面return的message"
            }
        }
    })
    
    new Vue({
        el:"#app",
        // components:{
        // }
        data:{
            messag:"我是vue里面data的message"
        }
    })
</script>
</html>